package com.explorati.design_pattern.comparson.creational.builder;

import com.explorati.design_pattern.comparson.creational.builder.SuperMan.AdultSuperManBuilder;
import com.explorati.design_pattern.comparson.creational.builder.SuperMan.ChildSuperManBuilder;

public class Client {

	public static void main(String[] args) {
		System.out.println("=============建造成年超人==============");
		AdultSuperManBuilder builder = new AdultSuperManBuilder();
		SuperMan adultSuperMan = builder.buildBody("强壮的身体").buildSpecialTalent("可以飞行").buildSpecialSymbol("胸前带S标记")
				.build();
		System.out.println(adultSuperMan);

		System.out.println("=============建造未成年超人==============");
		ChildSuperManBuilder builder1 = new ChildSuperManBuilder();
		SuperMan childSuperManBuilder = builder1.buildBody("灵敏的身体").buildSpecialTalent("快速移动")
				.buildSpecialSymbol("胸前带小S标记").build();
		System.out.println(childSuperManBuilder);
	}
}
